<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>输出100以内所以质数</title>
</head>
<body>
    <script>
        for(var i = 2; i < 100 ; i++){
            var num = true;
            for(var j =2; j<i;j++){   //满足条件则不是
                if(i%j == 0){
                    num = false;
                }
            }
            if(num){
                document.write( i+ ' 、'  );
            }
        }
    </script>
</body>
</html>